package com.apexsoft.assets.base.param;

import com.apexsoft.FileFrame;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

public class FileFrameWithParam extends FileFrame {

    private Map<String,Object> param;

    public FileFrameWithParam(MultipartFile multipartFile,Map<String,Object> param) throws IOException {
        super(multipartFile.getOriginalFilename(), multipartFile.getInputStream().available(), null);
        this.param = param;
    }

    public FileFrameWithParam(byte[] bytes, int length) {
        super(bytes,length);
    }

    public Map<String, Object> getParam() {
        return param;
    }
}
